#ifndef MAINTAIN_TABLEMODEL_H
#define MAINTAIN_TABLEMODEL_H

#include <QAbstractTableModel>

class MaintainTableModel : public QAbstractTableModel
{
    Q_OBJECT

public:
    explicit MaintainTableModel(QObject *parent = 0);
    ~MaintainTableModel(void);

    int rowCount(const QModelIndex &parent) const;
    int columnCount(const QModelIndex &parent) const;
    QVariant data(const QModelIndex &index, int role) const;
    Qt::ItemFlags flags(const QModelIndex &index) const;
    void setHorizontalHeader(const QStringList& headers);
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    void setDataVector(const QVector<QStringList>& vecData);
    QVector<QStringList>& DataVector() {return m_vecRowData;}

signals:

public slots:

private:
    QStringList m_sHorizontalHeader;
    QVector<QStringList> m_vecRowData;

};

#endif // MAINTAIN_TABLEMODEL_H
